home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / fractal / kaos.lha / auxlib / aux_rubber_box.c < prev    next >
Encoding:
C/C++ Source or Header  |  1989-11-18  |  541 b   |  17 lines

  1. /*
  2. ### draw a rubber box ###
  3. */
  4.  
  5. #include <suntool/sunview.h>
  6.  
  7. aux_rubber_box(aux_i,x,y,w,h,color)
  8. int aux_i,x,y,w,h,color;
  9. {
  10.         extern Pixwin **aux_pw;
  11.         pw_vector(aux_pw[aux_i], x, y, x + w, y, PIX_SRC ^ PIX_DST | PIX_COLOR(color), 1);
  12.         pw_vector(aux_pw[aux_i], x + w, y, x + w, y - h, PIX_SRC ^ PIX_DST | PIX_COLOR(color), 1);
  13.         pw_vector(aux_pw[aux_i], x + w, y - h, x, y - h, PIX_SRC ^ PIX_DST | PIX_COLOR(color), 1);
  14.         pw_vector(aux_pw[aux_i], x, y - h, x, y, PIX_SRC ^ PIX_DST | PIX_COLOR(color), 1);
  15. }
  16.  
  17.